Skip to content

added test cases for launch processes and conditional launching - #298

Open
Saumya-R wants to merge 1 commit into
eclipse-score:mainfrom
qorix-group:saumya_lifecycle_integration_test_1
Open

added test cases for launch processes and conditional launching#298
Saumya-R wants to merge 1 commit into
eclipse-score:mainfrom
qorix-group:saumya_lifecycle_integration_test_1

Conversation

@Saumya-R

@Saumya-R Saumya-R commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

This branch introduces lifecycle integration coverage for Launching Processes and Conditional Launching using a real launch_manager daemon setup, updates test infrastructure to reduce false negatives, and refreshes documentation/roadmap artifacts.

Sub-title Requirement ID Files Verification Level
Process launching via daemon (parallelism, args, UID/GID, priority, scheduling, retries, non-root, crash monitoring) feat_req__lifecycle__parallel_launch_support, feat_req__lifecycle__process_launch_args, feat_req__lifecycle__uid_gid_support, feat_req__lifecycle__launch_priority_support, feat_req__lifecycle__scheduling_policy, feat_req__lifecycle__retries_configurable, feat_req__lifecycle__secpol_non_root, feat_req__lifecycle__monitor_abnormal_term lifecycle/test_process_launching_with_daemon.py (TestProcessLaunchingWithDaemon) Partial
Health monitoring: watchdog / liveliness detection with daemon (pytest.mark.manual) feat_req__lifecycle__liveliness_detection, feat_req__lifecycle__smart_watchdog_config lifecycle/test_process_launching_with_daemon.py (TestHealthMonitoringWithDaemon) Partial (manual)
Conditional launching with daemon (rust/cpp dependency gating, including the negative case of cpp being withheld) feat_req__lifecycle__launch_support, feat_req__lifecycle__waitfor_support, feat_req__lifecycle__cond_process_start, feat_req__lifecycle__dependency_check, feat_req__lifecycle__process_ordering lifecycle/test_conditional_launching.py (TestConditionalLaunchingWithDaemon, TestConditionalLaunchingBlocksOnMissingDependency) Partial
Conditional launching scenario binary (timeout, polling interval, path/env/process condition satisfaction, unmet-condition timeout, unsupported-prefix rejection) feat_req__lifecycle__total_wait_time_support, feat_req__lifecycle__polling_interval, feat_req__lifecycle__path_condition_check, feat_req__lifecycle__env_variable_cond_check, feat_req__lifecycle__dependency_check, feat_req__lifecycle__validate_conditions lifecycle/test_conditional_launching_scenario.py (TestConditionalLaunchingScenario, TestConditionalLaunchingScenarioTimesOutOnUnmetConditions, TestConditionalLaunchingScenarioRejectsUnsupportedPrefix) Partial

@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new Lifecycle “conditional launching” feature-integration test scenario and a Python FIT suite that runs it against both the Rust and C++ scenario runners. It also introduces a Rust “lifecycle-only” Bazel binary variant intended to avoid pulling in persistency-related dependencies for this specific suite, and updates test harness/configuration to support selective scenario builds.

Changes:

  • Added Lifecycle conditional-launching scenarios to the Rust and C++ FIT scenario trees.
  • Added a Python requirements-based FIT suite for conditional launching (parametrized for Rust/C++) plus a shared lifecycle base scenario fixture.
  • Added a Rust lifecycle-only Bazel scenario binary and updated FIT build selection/docs.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pyproject.toml Updates pytest configuration section to tool.pytest.ini_options.
feature_integration_tests/test_scenarios/rust/src/scenarios/mod.rs Registers the new lifecycle scenario group in the Rust scenario tree.
feature_integration_tests/test_scenarios/rust/src/scenarios/lifecycle/mod.rs Adds a lifecycle scenario group (Rust).
feature_integration_tests/test_scenarios/rust/src/scenarios/lifecycle/conditional_launching.rs Implements the Rust conditional-launching scenario input validation/logging.
feature_integration_tests/test_scenarios/rust/src/main.rs Adds lifecycle_only compilation mode and a reduced root group for lifecycle-only builds.
feature_integration_tests/test_scenarios/rust/BUILD Adds rust_lifecycle_test_scenarios Bazel target using --cfg=lifecycle_only.
feature_integration_tests/test_scenarios/cpp/src/scenarios/mod.cpp Registers a lifecycle scenario group (C++).
feature_integration_tests/test_scenarios/cpp/src/scenarios/lifecycle/conditional_launching.h Declares the C++ conditional-launching scenario factory.
feature_integration_tests/test_scenarios/cpp/src/scenarios/lifecycle/conditional_launching.cpp Implements the C++ conditional-launching scenario parsing/logging.
feature_integration_tests/test_cases/tests/lifecycle/test_conditional_launching.py Adds Python FIT assertions for lifecycle conditional launching (Rust/C++).
feature_integration_tests/test_cases/lifecycle_scenario.py Introduces a shared LifecycleScenario base class with a common temp_dir fixture.
feature_integration_tests/test_cases/conftest.py Skips building unselected scenario variants based on the pytest mark expression.
feature_integration_tests/test_cases/BUILD Adds lifecycle_scenario.py to FIT runfiles.
feature_integration_tests/README.md Documents running lifecycle conditional-launching FITs and the lifecycle-only Rust target.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread feature_integration_tests/test_cases/conftest.py
Comment thread feature_integration_tests/README.md Outdated
@Saumya-R
Saumya-R marked this pull request as ready for review July 17, 2026 05:25
@Saumya-R
Saumya-R marked this pull request as draft July 17, 2026 05:57
@Saumya-R Saumya-R changed the title added test cases for conditional launching added test cases for launch processes and conditional launching Jul 21, 2026
@Saumya-R
Saumya-R marked this pull request as ready for review July 21, 2026 06:29
@Saumya-R
Saumya-R force-pushed the saumya_lifecycle_integration_test_1 branch from 816b818 to 1c7d861 Compare July 22, 2026 06:28

@PiotrKorkus PiotrKorkus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also remove duplicated dependency/ordering tests across daemon files

Comment thread pyproject.toml Outdated
Comment thread feature_integration_tests/test_cases/requirements.txt.lock
Comment thread feature_integration_tests/test_cases/BUILD Outdated
Comment thread feature_integration_tests/test_cases/BUILD Outdated
Comment thread feature_integration_tests/test_cases/BUILD
@Saumya-R
Saumya-R force-pushed the saumya_lifecycle_integration_test_1 branch 3 times, most recently from 7bc8cd9 to d1cddfa Compare July 31, 2026 06:13
Copyright fixes

added test case to reject unknown conditions

fixed the readme

added launch manager processes

adding additional test cases for lifecycle

removing the changes in pyproject and requirements txt

added review comment fixes:
- cleared the non-required.
- removed the dead LIFECYCLE_TESTS_SUMMARY.md doc reference.
- dropped the class-level 13-req partially_verifies blanket claim;
each requirement is now tagged on the specific test that actually
 exercises it (add_test_properties moved onto individual methods)
- deleted test_config_defines_startup_retry_policy

Adding review comments

added the following fixes :
- The scenario now actually polls and checks each condition instead of printing it
- Replaced plain std::cout text with the same structured JSON log shape the Rust tracing subscriber emits
- TestConditionalLaunchingScenario now creates a real flag file, sets a real env var, and spawns
a real sleep process
- Added TestConditionalLaunchingScenarioTimesOutOnUnmetConditions, a negative test where none
of the conditions are ever satisfied
- removed test_startup_launches_supervised_apps and test_dependency_gates_rust_startup from
test_process_launching_with_daemon.py
- TestConditionalLaunchingBlocksOnMissingDependency spins up its own launch_manager with cpp
 withheld to prove real gating

added TestConditionalLaunchingScenarioRejectsUnsupportedPrefix
@Saumya-R
Saumya-R requested a review from PiotrKorkus July 31, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants